package cmcciot.onenet.nbapi.sdk.entity;

import cmcciot.onenet.nbapi.sdk.config.Config;

/**
 * Created with Software Dept.
 * <p>
 * User: tian
 * Date: 2018-08-07
 * Time: 10:29
 * Description:
 */
public class QuerySingleDeviceImei extends CommonEntity {

    private String imei;
    public QuerySingleDeviceImei(String imei) {
        this.imei = imei;
    }

    @Override
    public String toUrl() {
        StringBuilder url = new StringBuilder(Config.getDomainName());
        url.append("/devices/getbyimei?imei=").append(this.imei);
        return url.toString();
    }
}
